import com.dbb.Contact
import com.dbb.Product

class BootStrap {

    def init = { servletContext ->
		initContact()
    }
    def destroy = {
    }
	
	static void initContact() {
		new Contact("Samy").save()
		new Contact("SL").save()
		new Contact("KL").save()
		new Contact("Carry").save()
		new Contact("QF").save()
		new Contact("Helen").save()
	}
	
	static void initProduct() {
		new Product("1118", "Samy boot").save()
		new Product("1157", "Lady metal button").save()
		new Product("9190", "Lady zig zag").save()
		new Product("1197", "Skein Insole").save()
		new Product("1193", "Hair mouth").save()
	}
}
